function template
<random>
std::operator<<
template <class charT, class traits, class IntType> basic_ostream<charT,traits>& operator<< ( basic_ostream<charT,traits>& os, const uniform_int_distribution<IntType>& distr );
Insert into output stream
Writes a textual representation of the distribution parameters and any other internal data kept by the object, in such a way that if this same text is inserted using operator>> into an object of the same type, the same sequence of random numbers would be generated by equivalent invocations of operator().
Parameters
- os
- ostream object on which the insertion operation is performed.
- distr
- Distribution object inserted.
Return Value
The same as parameter os.
If some error happens during the output operation, the stream's badbit flag is set, and if the appropriate flag has been set with ios::exceptions, an exception is thrown.